<div ng-controller="SchemaCtrl" ng-init="batchAction()">
    <div>
        <ul class="sui-breadcrumb">
            <li><a href="">{{'预约'| translate}}</a></li>
            <li class="active">
                批量定制项目周期
            </li>
            <span class="sui-form sui-form pull-right"> 
            <input  ng-model="start_source_at"  min-date="{{data_time}}" type="yyyy-MM-dd" datetimepicker name="start_source_at"  max-date ="" required>
            <input  ng-model="end_source_at"  min-date="{{start_source_at}}" type="yyyy-MM-dd" datetimepicker name="end_source_at"  max-date ="" required>
            <schema-list ng-model="schema_id" dft="1"></schema-list>
            <button class="sui-btn btn-primary" type="submit" ng-click="getperiod()">{{'search'|translate}}</button>
            </span>
        </ul>
        <div ng-show="periods">
            <table class="sui-table table-bordered" ng-show="periods">
                <thead>
                    <tr>
                        <!-- <th>{{'是否预约'| translate}}
                            <input type="checkbox" ng-model="selectAll" ng-click="all(selectAll)"> 全选/取消
                        </th> -->
                        <th>{{'周几'| translate}}</th>
                        <th>{{'对应日期'| translate}}</th>
                        <th>{{'是否使用'| translate}}</th>
                        <!-- <th>{{'时段设置'| translate}}</th> -->
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="(key,list) in periods">
                        <!-- <td>
                            <input type="checkbox" name="checkbox1" ng-model="list.status" ng-true-value="1" ng-false-value="0">
                        </td> -->
                        <td>
                            {{list.name}}
                        </td>
                        <td>
                            {{list.source_at}}
                        </td>
                        <td>
                            <choice ng-model="list.status"></choice>
                        </td>
                        <!-- <td>
                            <timeslot-list schemaid="schemaid" istime="{{list.source_at}}" callback="stltodat()" periodid="list.period_id"></timeslot-list>
                        </td> -->
                    </tr>
                </tbody>
            </table>
            <div>
                状态：
                <label>
                    <input type="radio" name="pay_way_id" ng-model="status" ng-value="1" class="input-xlarge" required />开启 </label>
                <label>
                    <input type="radio" name="pay_way_id" ng-model="status" ng-value="0" class="input-xlarge"  required />禁用
                </label>
                <span> 
                    <button class="sui-btn btn-primary"  ng-click="savePeriods($evtnt)">{{'保存'|translate}}</button>
                </span>
            </div>
        </div>
        <pager page-no="1" page-size="pageSize" total="storeTotal" get-data="getstoreList(pageNo)"></pager>
    </div>
</div>